<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/defectType/defectTypeLookup" onsubmit="return dwzSearch(this, 'dialog');">
    <div class="pageHeader">
        <div class="searchBar defectType" >
            <ul class="searchContent">
                <li ><label><@label key="defectTypeCode.C,colon">缺陷等级编号：</@label></label> <input type="text" class="textInput" name="defectTypeCode" value="${condition.defectTypeCode!''}" /></li>
                <li ><label><@label key="defectTypeText.C,colon">缺陷等级描述：</@label></label> <input type="text" class="textInput" name="defectTypeText" value="${condition.defectTypeText!''}" /></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
    <table class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="40"><@label key="serialNumber.C">序号</@label></th>
                <th width="100" orderField="defectTypeCode"<#if (page.orderField?? && page.orderField == 'defectTypeCode')>class="${page.orderDirection!''}"</#if>><@label key="defectTypeCode.C">缺陷等级编号</@label></th>
                <th width="100" orderField="defectTypeText"<#if (page.orderField?? && page.orderField == 'defectTypeText')>class="${page.orderDirection!''}"</#if>><@label key="defectTypeText.C">缺陷等级描述</@label></th>
                <th width="100"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as defectType>
            <tr target="defectType_code" rel="${defectType.defectTypeCode!''}">
                <td>${page.startRow + defectType_index}</td>
                <td>${defectType.defectTypeCode!''}</td>
                <td>${defectType.defectTypeText!''}</td>
                <td><a class="btnSelect bringBack" value="defectTypeCode:'${defectType.defectTypeCode!''}', defectTypeText:'<@json_escape>${defectType.defectTypeText!''}</@json_escape>'" >选择</a></td>        
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="4"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="4"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
</div>